namespace TSL.BLL
{
    using System;
    using System.Data;
    using TSL.DAL;

    public class OpenCodes
    {
        private readonly TSL.DAL.OpenCodes dal = new TSL.DAL.OpenCodes();

        public void CloseCaipiao(int ssc_id, string lottery_num)
        {
            this.dal.CloseCaipiao(ssc_id, lottery_num);
        }

        public void FanDian(string username, string xusername, string lottery_id, string expect, string protype, double winmoney)
        {
            this.dal.FanDian(username, xusername, lottery_id, expect, protype, winmoney);
        }

        public DataSet GetListOpenCodes(string strWhere)
        {
            return this.dal.GetListOpenCodes(strWhere);
        }

        public DataSet GetSscCodes(string strWhere)
        {
            return this.dal.GetSscCodes(strWhere);
        }

        public void MyFanDian(string username, string lottery_id, string expect, string protype, double winmoney)
        {
            this.dal.MyFanDian(username, lottery_id, expect, protype, winmoney);
        }

        public void OpenCode(string username, int wininfo, string lottery_id, string expect, string protype, double winmoney)
        {
            this.dal.Opencodes(username, wininfo, lottery_id, expect, protype, winmoney);
        }

        public void UnWin(string username, string lottery_id, string expect)
        {
            this.dal.UnWin(username, lottery_id, expect);
        }
    }
}

